﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Web;
using Risesun.Extend;
using Risesun.Web;

namespace Risesun.WebApp
{
    [Controller]
    public class HomeController : HttpController
    {
        public IHttpAction Index()
        {
            return new ViewAction() { Status = HttpStatus.Success };
        }

        public IHttpAction Profile(IEnumerable<int> ids)
        {
            if (ids != null && ids.Any())
            {
                foreach (var id in ids)
                {
                    Response.Write(id);
                    Response.Write("<br/>");
                }
            }
            Response.Write("Profile");
            return new ViewAction() { Status = HttpStatus.Success };
        }
    }

    public class Test
    {
        public int Id { get; set; }
    }
}